import request from '@/utils/request'

const api = {
    POLLUTANT_TYPE: '/jxgimsa/pollutant/base/sort',
    GetPOLLUTANT_SUB_TYPE: '/jxgimsa/bascode/TYPE1',
}

export function GetPOLLUTANT_TYPE() {
    return request({
        url: api.POLLUTANT_TYPE,
        method: 'get',
        data: ''
    })
}
export function GetPOLLUTANT_SUB_TYPE(data) {
    return request({
        url: api.GetPOLLUTANT_SUB_TYPE + '/' + data.id,
        method: 'post',
        data: data
    })
}